package com.shujia.java.day8.demo4;

public abstract class Pet {
    private String name;
    private String sex;
    private String health="100";//100
    private String love="0"; //0
    public Pet() {
    }
    public Pet(String name, String sex,  String health, String love) {
        this.name = name;
        this.sex = sex;
        this.health = health;
        this.love = love;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getSex() {
        return sex;
    }
    public void setSex(String sex) {
        this.sex = sex;
    }
    public String getHealth() {
        return health;
    }
    public void setHealth(String health) {
        this.health = health;
    }
    public String getLove() {
        return love;
    }

    public void setLove(String love) {
        this.love = love;
    }

    public abstract void eat();
    public abstract void play();
    public abstract void print();
}
